export const BlockchainConfig = {
	inline: false,
	showBtn: false,
	isBlockchain: true,
	blockchainProp: 'onBlockchainFlag',
	labelPosition: 'left',
	column: [
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '上链信息',
			span: 24,
		},
		{
			label: '链码名称',
			prop: 'chaincodeName',
			span: 8,
		},
		{
			label: '交易ID',
			prop: 'txId',
			span: 8,
		},
		{
			label: '交易时间',
			prop: 'txTimestamp',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '交易组织ID',
			prop: 'mspID',
			span: 8,
		},
		{
			label: '查询区块高度',
			prop: 'height',
			span: 8,
		},
		{
			label: '是否合法',
			prop: 'isValid',
			span: 8,
		}
	],
}

export const tableConfig = {
	stripe: true,
	border: true,
	columns: [
		{ label: '姓名', prop: 'personName' },
		{ label: '身份证', prop: 'idCard', plusXing: '2,2' },
		{ label: '打卡地点', prop: 'punchPlace' },
		{ label: '打卡时间', prop: 'punchTime' },
		{
			label: '上链状态',
			prop: 'onBlockchainFlag',
			// api: 'geiDictItemList',
			// type: 'remoteSelect',
			// code: 'BLOCK_CHAIN_STATUS',
			// tipProp: 'onBlockchainTime',
			// tipLabel: '上链时间',
		}
	],
}

export const api = {
	index: 'view_iccPunchRecord_page',
	detail: 'view_iccPunchRecord_page',
}
export const baseConfig = {
	rowKey: 'id',
	tipLabel: 'name',
	pageName: '指静脉打卡记录',
	exportMqTopic: '/ning/export/',
	api,
	auth: api,
	menuBtn: [
		{
			icon: 'detail',
			label: '查看档案',
			type: 'primary',
			operate: 'Archives',
			auth: api.detail,
			text: true,
			show: true,
		},
	],
	paramsObj: {
		personType: 2,
	},
	dialogConfig: {
		width: '75%',
	},
	tableConfig,
}
